#ifndef __ENCODE_H__
#define __ENCODE_H__

#include "proto/message.pb.h"
#include "buffer.h"
#include <string>

class EnCodeTool
{
public:
    static void EnCode(proto::NetMsg& netMsg, Buffer::ptr& buffer);
    static bool DeCode(Buffer::ptr& buffer, proto::NetMsg& netMsg);
};

#endif // !__ENCODE_H__
